package com.zhijian.warehouse.manage.dao;

import com.zhijian.warehouse.manage.entity.po.OperationalReality;
import com.zhijian.warehouse.manage.entity.vo.request.OperationalRealitySearchVo;
import com.zhijian.warehouse.manage.entity.vo.response.OperationalRealityVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OperationalRealityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OperationalReality record);

    int insertSelective(OperationalReality record);

    OperationalReality selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OperationalReality record);

    int updateByPrimaryKey(OperationalReality record);

    /**
     * 查询总数
     *
     * @param operationalRealitySearchVo
     * @return
     */
    int count(OperationalRealitySearchVo operationalRealitySearchVo);

    /**
     * 查询列表
     *
     * @param operationalRealitySearchVo
     * @return
     */
    List<OperationalRealityVo> selectList(OperationalRealitySearchVo operationalRealitySearchVo);

    /**
     * 查询单个
     *
     * @param operationalRealitySearchVo
     * @return
     */
    OperationalRealityVo selectOne(OperationalRealitySearchVo operationalRealitySearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    OperationalRealityVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param operationalRealitySearchVo
     * @return
     */
    void deleteByCondition(OperationalRealitySearchVo operationalRealitySearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<OperationalReality> entities);
}